<%@page import="board.BoardMyba"%>
<%@page import="board.BoardVo"%>
<%@page import="board.Board"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script src="./board_mybatis/board.js"></script>

</head>
<body>
<jsp:useBean id="boardVo" class="board.BoardVo"/>
<jsp:setProperty property="*" name="boardVo"/>
<%
BoardMyba bb = new BoardMyba();
bb.setBoardVo(boardVo);
BoardVo vo = bb.view();
%>
<center><h1>뷰 화면</h1></center>
	<div id="view_body">
		<form name="view_frm" method="post" action="index2.jsp?inc_center=./board_mybatis/modify.jsp" enctype="multipart/form-data">
			시리얼 : <%=vo.getSerial()%><br/>
			아이디 : <input type="text" name="mid" value="<%=vo.getMid()%>" readonly><br/>
			암&emsp;호 : <input type="text" name="pwd" value="<%=vo.getPwd()%>" readonly><br/>
			제&emsp;목 : <input type="text" name="subject" value="<%=vo.getSubject()%>" readonly><br/>
			내&emsp;용 : <textarea rows="5" cols="30" name="content" readonly><%=vo.getContent()%></textarea><br/>

			 
			<%if(vo.getFilename() != null || vo.getFilename() != "") { %>
				첨부파일 :
				<a href="#" onclick="fileDownload('<%=vo.getFilename()%>')"><%=vo.getFilename()%></a><br/>
			<%} %>
			조회수 : <%=vo.getHit()%><br/><br/>
			<input type="button" value="수정" onclick="modify(<%=vo.getSerial()%>)">
			<input type="button" value="댓글" onclick="rep(<%=vo.getSerial()%>, <%=vo.getGrp()%>, '<%=vo.getDeep()%>')">
			<input type="button" value="삭제" onclick="del(<%=vo.getSerial()%>, '<%=vo.getFilename()%>')">
			<input type="button" value="목록" onclick="btn_list()">
		</form>
	</div>
</body>
</html>